//
//  AutoScrollLabel.h
//  鼎立华服
//
//  Created by 中企互联 on 2017/12/15.
//  Copyright © 2017年 中企互联. All rights reserved.
//

#import <UIKit/UIKit.h>

#define NUM_LABELS 2

enum AutoScrollDirection {
    AUTOSCROLL_SCROLL_RIGHT,
    AUTOSCROLL_SCROLL_LEFT,
};

@interface AutoScrollLabel : UIScrollView<UIScrollViewDelegate>
{
    UILabel *label[NUM_LABELS];
    enum AutoScrollDirection scrollDirection;
    float scrollSpeed;
    NSTimeInterval pauseInterval;
    int bufferSpaceBetweenLabels;
    bool isScrolling;
}

@property(nonatomic)enum AutoScrollDirection scrollDirection;
@property(nonatomic)float scrollSpeed;
@property(nonatomic)NSTimeInterval pauseInterval;
@property(nonatomic)int bufferSpaceBetweenLabels;

// normal UILabel properties
@property(nonatomic,retain)UIColor *textColor;
@property(nonatomic,retain)UIFont *font;

- (void)readjustLabels;
- (void)setText:(NSString *)text;
- (NSString *)text;
- (void)scroll;


@end
